# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

#-*- coding: UTF-8 -*-
# new_line = ""
#
# with open("./data/userdict.txt", 'r', encoding='utf-8') as file1:
#     for lines in file1:
#         new_line += lines.strip() + " 15 nc" + "\n"
#     file1.close()
# with open("./data/userdict1.txt", 'w', encoding='utf-8') as file2:
#     file2.write(new_line)
#     file2.close()

#-*- coding: UTF-8 -*-


import sys
from preprocess_data import Question
# 创建问题处理对象，这样模型就可以常驻内存
que = Question()
# Restore
def enablePrint():
    sys.stdout = sys.__stdout__
enablePrint()
result = que.question_process("隐私权的父类是什么")
print(result)

